package com.gaofeng.day19;

import java.util.Comparator;
import java.util.TreeMap;

public class demo06 {
    public static void main(String[] args) {
        //
        TreeMap<Integer, String> tm = new TreeMap<>( (o1,  o2) -> o2-o1);
        tm.put(1,"测试1");
        tm.put(3,"测试3");
        tm.put(2,"测试2");


        System.out.println(tm);
    }
}
